package cn.selfiot.iotman.model.mqtt;

import cn.selfiot.iotman.model.mqtt.ssl.CACertFileModel;
import cn.selfiot.iotman.model.mqtt.ssl.CAKeystoreModel;
import cn.selfiot.iotman.model.mqtt.ssl.SelfSignedCertModel;

/**
 * SSL 配置
 *
 * @author hugo
 * @since 2020/8/1
 */
public class SSLModel {
    private Boolean enable = false;
    private String sslVersion;
    private CACertFileModel caCertFile;
    private CAKeystoreModel caKeystore;
    private SelfSignedCertModel selfSignedCert;
    
    public Boolean getEnable() {
        return enable;
    }
    
    public void setEnable(Boolean enable) {
        this.enable = enable;
    }
    
    public String getSslVersion() {
        return sslVersion;
    }
    
    public void setSslVersion(String sslVersion) {
        this.sslVersion = sslVersion;
    }
    
    public CACertFileModel getCaCertFile() {
        return caCertFile;
    }
    
    public void setCaCertFile(CACertFileModel caCertFile) {
        this.caCertFile = caCertFile;
    }
    
    public CAKeystoreModel getCaKeystore() {
        return caKeystore;
    }
    
    public void setCaKeystore(CAKeystoreModel caKeystore) {
        this.caKeystore = caKeystore;
    }
    
    public SelfSignedCertModel getSelfSignedCert() {
        return selfSignedCert;
    }
    
    public void setSelfSignedCert(SelfSignedCertModel selfSignedCert) {
        this.selfSignedCert = selfSignedCert;
    }
    
    @Override
    public String toString() {
        return "SSLModel{" +
                "enable=" + enable +
                ", sslVersion='" + sslVersion + '\'' +
                ", caCertFile=" + caCertFile +
                ", caKeystore=" + caKeystore +
                ", selfSignedCert=" + selfSignedCert +
                '}';
    }
}
